package com.github.m6d21.sso.model.permission.entity;

import static com.github.m6d21.sso.model.constant.CommonConstant.DateConstant.DEFAULT_DATE_FORMAT;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2019/1/4 Fri 15:25:00
 * @since 1.0.0
 */
@ApiModel("权限信息")
@Getter
@Setter
@ToString
public class Permission implements Serializable {

    private static final long serialVersionUID = 3128418094142035614L;
    @ApiModelProperty("权限ID")
    private Integer id;
    @ApiModelProperty("权限名称")
    private String name;
    @ApiModelProperty("权限编码")
    private String permissionCode;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("是否禁用")
    private Integer disable;
    @JsonFormat(pattern = DEFAULT_DATE_FORMAT, timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;
}
